package com.ddone.demo.mapper;

import com.ddone.demo.bean.Emp;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ddone
 * @date 2024/3/18-23:36
 */
public interface EmpAnnotation {
    @Select("select emp_id, emp_name, emp_salary from t_emp")
    public List<Emp> selectAll();

    @Select("select emp_id, emp_name, emp_salary from t_emp where emp_id = #{empId}")
    public Emp selectEmpById(Integer empId);
}
